:root {
    --primary-color: #4e73df;
    --secondary-color: #224abe;
    --success-color: #1cc88a;
    --error-color: #e74a3b;
    --text-color: #5a5c69;
    --light-bg: #f8f9fc;
    --card-border: rgba(0, 0, 0, 0.125);
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', 'Segoe UI', Roboto, Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f9fc 0%, #e8eaf6 100%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    padding: 3rem 0;
}

body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(78, 115, 223, 0.05) 0%, rgba(78, 115, 223, 0) 70%);
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
}

.logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo img {
    height: 80px;
}

.card {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.25rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.card-header {
    padding: 1.5rem;
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.card-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2e384d;
    margin-bottom: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #6e707e;
    background-color: #f8f9fc;
    background-clip: padding-box;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: #6e707e;
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.form-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #b7b9cc;
    z-index: 1;
}

.button {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.button:hover {
    background-color: var(--secondary-color);
}

.button:active {
    transform: scale(0.98);
}

.button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.text-danger {
    color: var(--error-color);
}

.text-success {
    color: var(--success-color);
}

.card-footer {
    padding: 1.5rem;
    background-color: #f8f9fc;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.card-footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.card-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease-in-out;
}

.card-footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.35rem;
    display: none;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert p {
    margin: 0;
}

.loading-icon {
    display: none;
    margin-left: 0.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #b7b9cc;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me input {
    margin-right: 0.5rem;
}

.remember-me label {
    font-size: 0.9rem;
    cursor: pointer;
}

/* Register page specific styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-grid-full {
    grid-column: 1 / span 2;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-select {
    position: relative;
}

.form-select select {
    display: block;
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #6e707e;
    background-color: #f8f9fc;
    background-clip: padding-box;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

.form-select select:focus {
    color: #6e707e;
    background-color: #fff;
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.password-requirements {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #6e707e;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.requirement i {
    font-size: 0.75rem;
}

.requirement.valid {
    color: var(--success-color);
}

.requirement.invalid {
    color: #6e707e;
}

/* Custom Radio Buttons for User Role */
.role-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-option {
    flex: 1;
    position: relative;
}

.role-option input {
    opacity: 0;
    position: absolute;
    height: 0;
    width: 0;
}

.role-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #f8f9fc;
    border: 2px solid #e3e6f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-option input:checked + label {
    border-color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.05);
}

.role-option label i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: #b7b9cc;
}

.role-option input:checked + label i {
    color: var(--primary-color);
}

.role-option label span {
    font-weight: 600;
    color: #6e707e;
}

.role-option input:checked + label span {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .container {
        max-width: 500px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid-full {
        grid-column: 1;
    }
} 